package org.rust.lang;

public class Assert
{   
   public static void verify(boolean cond)
   {
      if(!cond)
         throw new RuntimeException("Assert.verify() failed");      
   }
   
   public static void verify(boolean cond, String msg)
   {
      if(!cond)
      {
         System.out.println("verify failed with message: " + msg);
         throw new RuntimeException(msg);
      }
   }

   public static void fail()
   {
      throw new RuntimeException("Assert.fail()");      
   }
   
   public static void fail(String msg)
   {
      System.out.println("fail() called with message: " + msg);
      throw new RuntimeException(msg);      
   }
}

